package com.guyu.plugin.log.event;

import com.guyu.plugin.log.enums.BusinessStatus;
import jakarta.servlet.http.HttpServletRequest;
import lombok.Data;

import java.io.Serial;
import java.io.Serializable;
import java.util.Map;

/**
 * 登录登出等事件
 */
@Data
public class LoginLogEvent implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;
    /**
     * 此次登录的客户端类型
     */
    public String clientType;
    /**
     * 此次登录的客户端ID
     */
    public String clientId;
    /**
     * 账号类别
     */
    private String loginType;
    /**
     * 账号id
     */
    private Object loginId;
    /**
     * token值
     */
    private String tokenValue;
    /**
     * 业务类型
     */
    private Integer businessType;
    /**
     * 操作状态
     */
    private BusinessStatus status;
    /**
     * 操作时间
     */
    private Long opTime;
    /**
     * 扩展信息
     */
    private Map<String, Object> extraData;
    /**
     * 请求体
     */
    private HttpServletRequest request;


}
